package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.Order;

import java.text.ParseException;
import java.util.List;
import java.util.Map;

public interface OrderService {
    public Result order(Map map) throws Exception;
    public Map findById(Integer id) throws Exception;

    public PageResult findPage(QueryPageBean queryPageBean) throws ParseException;

    public Result cancel(Map map);
    public Result open(Map map);

    List<Map> findByMemberId(Integer memberId);
}
